import Vue from 'vue';
import Component from './mask';
const MaskConstructor = Vue.extend(Component);

let seed = 1;

const mask = function () {
    if (Vue.prototype.$isServer) return
    const id = `mask_${seed++}`
    const instance = new MaskConstructor()
    instance.id = id
    instance.vm = instance.$mount()
    document.body.appendChild(instance.vm.$el)
    instance.vm.isShow = true;
    return instance.vm
}
export default mask
